/**
 * h5渠道收口
 * @desc 渠道在初始化，并保留渠道sdk api
 */
let sdk = {}
import store from '@/store'

let UA = require('utils/ua').default
let { DEBUG, TOKEN } = require('utils/config')
if (UA.isAppWebview) { // wehotel系app共用同一个sdk
  sdk = require('./wehotel/index')
} else if(UA.isWxWebview) {
  sdk = require('./wx/index')
} else {
  sdk = require('./mobile/index')

  // if (DEBUG) {
  //   store.commit('SAVE_TOKEN', TOKEN)
  // }
}

sdk = sdk.default
export default sdk


